import { createRouter, createWebHashHistory } from "vue-router";
import PageManager from "@/views/pagemanager/PageManager";
import ModelList from "@/views/model_list/ModelList";
import ModelDetail from "@/views/modeldeatail/ModelDetail";
import CaculateHistory from "@/views/caculatehistory/CaculateHistory";
import ModelAdd from "@/views/model_add/ModelAdd";
import PageLogin from "@/views/login_register/PageLogin";
import PageRegister from "@/views/login_register/PageRegister";
import CalculationHistory__Detail from "@/views/caculatehistory/CalculationHistory__Detail";
import MyPage from "@/views/mypage/MyPage";
import singleC from "@/views/analogcalculation/SingleC";
import revolveC from "@/views/analogcalculation/RevolveC";

import G14 from "@/views/caculate_detail/G14-1diffTempAcid";
import G15 from "@/views/caculate_detail/G14-2diffTempUranium";
const routes = [
  {
    path: "/1",
    component: PageManager,
    children: [
      {
        path: "S_C",
        component: singleC,
      },
      {
        path: "R_C",
        component: revolveC,
      },
      {
        path: "m_l",
        component: ModelList,
      },
      {
        path: "m_d",
        component: ModelDetail,
      },
      {
        path: "c_h",
        component: CaculateHistory,
      },
      {
        path: "c_h_d",
        component: CalculationHistory__Detail,
      },
      {
        path: "m_a",
        component: ModelAdd,
      },
      {
        path: "m_p",
        component: MyPage,
      },
    ],
  },
  {
    path: "/",
    component: PageLogin,
  },
  {
    path: "/re",
    component: PageRegister,
  },
  {
    path: "/G14",
    component: G14,
  },
  {
    path: "/G15",
    component: G15,
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
//导出路由
export default router;
